<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="wn"%>
<jsp:useBean id="pacientes" type="java.util.Vector" scope="request"/>
<wn:JSform />

<%@ include file="header.jsp" %>
<div id="welcome_cadpac">

<h1>Marcar Consulta</h1>

<form action="AgendaServlet" method="GET" id="formulario">
<table width="417" border="1">
    <tr>
      <th colspan="3">Buscar Paciente:</th>
    </tr>
    <tr>
      <td width="100">
     	 Nome:
      </td>
      <td>
      	<input type="text" name="nomepaciente" />
      	<input type="hidden" name="acao" value="Buscar" />
      </td>
      <td width="133">
      	<input type="submit" value="Pesquisar"/>
      </td>
    </tr>
  </table>
 </form>
<c:if test="${not empty(pacientes) }">
<wn:TabelaPacienteAgenda pacientes="${pacientes}"/>
</c:if>
